import axios from 'axios';

// const BASE_URL = 'http://web.woniulab.com:8002';

const usersAPIs = {
  getAccountList() {
    return axios({
      url: '/users/getAccountList',
      method: 'POST',
    });
  },
  delAccount(id) {
    return axios({
      url: '/users/delAccount',
      method: 'GET',
      params: { id },
    });
  },

  accountadd(data) {
    return axios({
      url: '/users/accountadd',
      method: 'POST',
      data,
    });
  },

  login(data) {
    return axios({
      url: '/users/login',
      method: 'POST',
      data,
    });
  },
};
export default usersAPIs;
